package org.example.servicestudent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.model.manage.bean.po.Student;
import org.example.servicestudent.vo.StudentInfoVO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-07-16
 */
@Mapper
public interface StudentMapper extends BaseMapper<Student> {

    /**
     * 根据unionId查询学生信息（包含专业名字）
     * @param unionId 微信用户unionId
     * @return 学生信息列表
     */
    List<StudentInfoVO> selectStudentInfoByUnionId(@Param("unionId") String unionId);

}
